import { RouteRecordRaw, RouterView } from 'vue-router'

const routes: RouteRecordRaw = {
  path: 'monitor',
  component: RouterView,
  children: [
    {
      path: 'data',
      name: 'Data',
      component: () => import('@/views/Monitor/Data/index.vue'),
      meta: {
        title: '监控>数据监控'
      }
    },
    {
      path: 'server',
      name: 'Server',
      component: () => import('@/views/Monitor/Server/index.vue'),
      meta: {
        title: '监控>服务监控'
      }
    },
    {
      path: 'cache',
      name: 'Cache',
      component: () => import('@/views/Monitor/Cache/index.vue'),
      meta: {
        title: '监控>缓存监控'
      }
    },
    {
      path: 'interface',
      name: 'Interface',
      component: () => import('@/views/Monitor/Interface/index.vue'),
      meta: {
        title: '监控>接口管理'
      }
    }
  ]
}

export default routes